package com.mybatis.boost.mapper.util.sql;

/**
 * @author jearton
 * @since 2017/2/10
 */
public abstract class DeleteSqlUtil {
    /**
     * delete tableName - 动态表名
     *
     * @param entityClass      实体类
     * @param defaultTableName 默认表名
     */
    public static String deleteFromTable(Class<?> entityClass, String defaultTableName) {
        return "DELETE FROM " + SqlUtil.getDynamicTableName(entityClass, defaultTableName) + " ";
    }
}
